export const routes = [
  {
    path: '/',
    component: () => import("@/views/layout/index.vue"),
    redirect: '/index',
    children: [
      {
        path: 'index',
        component: () => import("@/views/index/index.vue"),
        meta: {
          title: "首页"
        }
      },
      {
        path: 'recreation',
        component: () => import("@/views/recreation/index.vue"),
        meta: {
          title: "订单列表"
        }
      },
      {
        path: 'my',
        component: () => import("@/views/my/index.vue"),
        meta: {
          title: "我的"
        }
      },

      //学生
      {
        path: 'courseSelection',
        component: () => import("@/views/student/courseSelection.vue"),
        meta: {
          title: "我要选课"
        }
      },
      {
        path: 'myCourses',
        component: () => import("@/views/student/myCourses.vue"),
        meta: {
          title: "我的课程"
        }
      },
      {
        path: 'pendingAssignments',
        component: () => import("@/views/student/pendingAssignments.vue"),
        meta: {
          title: "待交作业"
        }
      },
      {
        path: 'askForLeave',
        component: () => import("@/views/student/askForLeave.vue"),
        meta: {
          title: "我要请假"
        }
      },
      {
        path: 'commentOnHomework',
        component: () => import("@/views/student/commentOnHomework.vue"),
        meta: {
          title: "已点评作业"
        }
      },
      {
        path: 'completeClassHours',
        component: () => import("@/views/student/completeClassHours.vue"),
        meta: {
          title: "已完成课程"
        }
      },
      {
        path: 'messageList',
        component: () => import("@/views/student/messageList.vue"),
        meta: {
          title: "消息列表"
        }
      },
      {
        path: 'contactMe',
        component: () => import("@/views/student/contactMe.vue"),
        meta: {
          title: "联系我们"
        }
      },
      {
        path: 'schoolAssignment',
        component: () => import("@/views/student/schoolAssignment.vue"),
        meta: {
          title: "提交作业"
        }
      },
      {
        path: 'courseDetails',
        component: () => import("@/views/student/courseDetails.vue"),
        meta: {
          title: "课程详情"
        }
      },
      {
        path: 'courselearning',
        component: () => import("@/views/student/courselearning.vue"),
        meta: {
          title: "课程学习"
        }
      },
      {
        path: 'myPoints',
        component: () => import("@/views/student/myPoints.vue"),
        meta: {
          title: "我的积分"
        }
      },



      //----------------教师
      {
        path: 'classManagement',
        component: () => import("@/views/teacher/classManagement.vue"),
        meta: {
          title: "班级列表"
        }
      },
      {
        path: 'studentList',
        component: () => import("@/views/teacher/studentList.vue"),
        meta: {
          title: "学员列表"
        }
      },
      {
        path: 'coursewareSharing',
        component: () => import("@/views/teacher/coursewareSharing.vue"),
        meta: {
          title: "课件分享"
        }
      },
      {
        path: 'shareDetails',
        component: () => import("@/views/teacher/shareDetails.vue"),
        meta: {
          title: "课件分享详情"
        }
      },
      {
        path: 'shareList',
        component: () => import("@/views/teacher/shareList.vue"),
        meta: {
          title: "课件分享列表"
        }
      },
      {
        path: 'commentList',
        component: () => import("@/views/teacher/commentList.vue"),
        meta: {
          title: "点评班级列表"
        }
      },
      {
        path: 'commentDetailsList',
        component: () => import("@/views/teacher/commentDetailsList.vue"),
        meta: {
          title: "点评列表"
        }
      },
      {
        path: 'viewingJobs',
        component: () => import("@/views/teacher/viewingJobs.vue"),
        meta: {
          title: "查看作业"
        }
      },
      {
        path: 'studentInquiry',
        component: () => import("@/views/teacher/studentInquiry.vue"),
        meta: {
          title: "学员列表"
        }
      },
      {
        path: 'classList',
        component: () => import("@/views/teacher/classList.vue"),
        meta: {
          title: "班级列表"
        }
      },
      {
        path: 'leaveList',
        component: () => import("@/views/teacher/leaveList.vue"),
        meta: {
          title: "考勤列表"
        }
      },
      {
        path: 'courseQuery',
        component: () => import("@/views/teacher/courseQuery.vue"),
        meta: {
          title: "课程查询"
        }
      },
    ]
  },
  {
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录"
    }
  },
  {
    path: "/register",
    component: () => import("@/views/register/index.vue"),
    meta: {
      title: "注册"
    }
  },
  {
    path: "/orderDetails",
    component: () => import("@/views/orderDetails/index.vue"),
    meta: {
      title: "订单详情"
    }
  },
  {
    path: "/test",
    component: () => import("@/views/test/index.vue"),
    meta: {
      title: "测试"
    }
  }
]
